<? if ($c = stack('name')) {

	$d = component_data($c); 
	$s = component_settings($c);
	
//debug($d);
	
  ?><div class="frame">
		<div class="photos">
			 <table cellspacing="0"><?

	 
	for ($row = 0; $row < $d['rows']; $row++) {
		?><tr><?
		for ($col = 0; $col < $d['cols']; $col++) {
			?><td><?
			if ($im = array_shift($d['objects'])) {
				?><a href="see-large/#<?=$im[fn]?>"><img src="<?="$s[path]/$im[tn]"?>" alt="" width="<?=$im['tnw']?>" height="<?=$im['tnh']?>"/></a><?
			} else { ?>&nbsp;<? }
			?></td><?
		}
		?></tr><?
	}
			 
			 
			 ?></table>
		</div>
  </div><?

 
	unstack();
}